The SELinux Notebook - The Foundations by Richard Haines

The SELinux Notebook - The Foundations by Richard Haines

Author:Richard Haines
Language: eng
Format: mobi
Publisher: UNKNOWN
Published: 2018-06-17T23:00:00+00:00


4.3.2 attribute Statement

Anattributestatement declares an identifier that can then be used to refer to a group of type identifiers.

The statement definition is:

attribute attribute_id;

Where:

attribute

attribute_id Theattribute keyword. Theattribute identifier.

The statement is valid in:

Monolithic Policy

Yes

Conditional Policy (if) Statement No

Base Policy Yes

Module Policy Yes

optional Statement Yes

require Statement Yes

Examples:

# Using the attribute statement to declare attributes domain, # daemon, file_type and non_security_file_type:

attribute domain;

attribute daemon;

attribute file_type;

attribute non_security_file_type;

4.3.3 typeattribute Statement

The typeattribute statement allows the association of previously declared types to one or more previously declaredattributes.

The statement definition is:

typeattribute type_id attribute_id [ ,attribute_id ];

Where:

typeattribute type_id

attribute_id Thetypeattribute keyword.

The identifier of a previously declaredtype.

One or more previously declared attribute identifiers. Multiple entries consist of a comma (,) separated list.

The statement is valid in: Monolithic Policy Yes

Base Policy Yes

Module Policy Yes

Conditional Policy (if) Statement optional Statement No Yes

require Statement No

Examples:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.